package com.effectivsocial.repository;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import com.effectivsocial.domain.User;

public interface UserRepository extends MongoRepository<User,String>{
	
	List<User> findByDeleted(Pageable pageable, boolean deleted);
	User findByEmail(String email);
	List<User> findByEmailLikeAndDeleted(String email, boolean deleted);
}
